import { TTLPlayer } from "@sapi-game/gamePlayer/gamePlayer";

export enum WereWolfRole {
    Villager = "平民",
    Seer = "预言家",
    Witch = "女巫",
    Hunter = "猎人",
    Werewolf = "狼人",
}

export enum WereWolfStatus {
    Live = 0,
    killed = 1,
    justDead = 2,
    Dead = 3,
}

export class WereWolfPlayer extends TTLPlayer {
    /**序号，默认0 */
    no: number = 0;
    role?: WereWolfRole;
    status: WereWolfStatus = WereWolfStatus.Live;
    poistend: boolean = false;
    votes: number = 0;
    voted: boolean = false;

    //是否同意跳过讨论(营地地图)
    agreed: boolean = false;

    get dead() {
        return this.status >= WereWolfStatus.justDead;
    }
}
